Skip to content

Set "trailing" on the comment node#3777

Closed
tenderlove wants to merge 1 commit into
ruby:mainfrom
tenderlove:trailing-comment
Closed

Set "trailing" on the comment node#3777
tenderlove wants to merge 1 commit into
ruby:mainfrom
tenderlove:trailing-comment

Conversation

@tenderlove

Copy link
Copy Markdown
Member

Comment nodes can know if they are trailing comments by looking at the previous token. If we set this on the comment object then we don't need to look at source slices when attaching comments

@tenderlove
tenderlove force-pushed the trailing-comment branch 2 times, most recently from d4362b3 to f1ebb6a Compare December 3, 2025 00:21
Comment nodes can know if they are trailing comments by looking at the
previous token.  If we set this on the comment object then we don't need
to look at source slices when attaching comments
@kddnewton

Copy link
Copy Markdown
Collaborator

(Closing per our convo)

@kddnewton kddnewton closed this Dec 4, 2025
@tenderlove
tenderlove deleted the trailing-comment branch December 12, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants